<?php
namespace app\common\model;

use think\Model;

class BaziPaipanLog extends Model
{
    protected $autoWriteTimestamp = 'int';
    protected $createTime = 'createtime';
    protected $updateTime = false;
    
    protected $append = [
        'createtime_text'
    ];
    
    public function getCreatetimeTextAttr($value, $data)
    {
        return date('Y-m-d H:i:s', $data['createtime']);
    }
}